﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace strategyPatternSample2
{
    public abstract class animal
    {
        public iLivingBehavior livingBehavior;
        public void performLiving()
        {
            livingBehavior.living();
        }

        public void setLyingBehavior(iLivingBehavior livingBehavior)
        {
            this.livingBehavior = livingBehavior;
        }

        public void exist()
        {
            Console.WriteLine(" existing..");
        }

        public abstract void iam();
    }
}
